
import request from '@/utils/request'
export const productTypeList = function(params){
  return request({
    url: '/product_type/list',
    method: 'get',
    params: params,
  })
}
export const productTypeAdd = function(params){
  return request({
    url: '/product_type/add',
    method: 'post',
    data: params,
  })
}
export const productTypeEditGet = function(params){
  return request({
    url: '/product_type/edit',
    method: 'get',
    params: params,
  })
}
export const productTypeEditPost = function(params){
  return request({
    url: '/product_type/edit',
    method: 'post',
    data: params,
  })
}
export const productTypeDel = function(params){
  return request({
    url: '/product_type/del',
    method: 'post',
    data: params,
  })
}


export const firstTypeList = function(params){
  return request({
    url: '/product_type/first_type',
    method: 'get',
    params: params,
  })
}
export const secondTypeList = function(params){
  return request({
    url: '/product_type/second_type',
    method: 'get',
    params: params,
  })
}

export const allFirstTypeList = function(params){
  return request({
    url: '/product_type/all_first_type_list',
    method: 'get',
    params: params,
  })
}
export const allSecondTypeList = function(params){
  return request({
    url: '/product_type/all_second_type_list',
    method: 'get',
    params: params,
  })
}